<!DOCTYPE html>
<meta charset="utf-8">
<#include "../../business/common/common.ftl"/>

<style>
    div {
        overflow: scroll;
    }

</style>
<div class="layui-fluid">
    <table class="layui-table table" style="text-align: center;font-size: 10px" id="dataTable" tableType="dataTable">
        <tr class="layui-bg-gray">
            <th style="text-align: center;" rowspan="2">序号</th>
            <th style="text-align: center;" rowspan="2">&#160;安置名称&#160;</th>
            <th style="text-align: center;" rowspan="2">&#160;乡镇&#160;</th>
            <th style="text-align: center;" colspan="2">一室</th>
            <th style="text-align: center;" colspan="2">一室二厅</th>
            <th style="text-align: center;" colspan="2">二室二厅</th>
            <th style="text-align: center;" colspan="2">三室二厅</th>
            <th style="text-align: center;" colspan="2">四室二厅</th>
            <th style="text-align: center;" colspan="2">五室二厅</th>
            <th style="text-align: center;" colspan="2">复式</th>
            <th style="text-align: center;" colspan="2">合计</th>
            <th style="text-align: center;" colspan="2">政策性预留</th>
            <th style="text-align: center;" colspan="2">店铺</th>
            <th style="text-align: center;" colspan="2">储藏间</th>
            <th style="text-align: center;" colspan="3">车位</th>

        </tr>
        <tr class="layui-bg-gray">
            <th style="text-align: center;">套数</th>
            <th style="text-align: center;">面积</th>
            <th style="text-align: center;">套数</th>
            <th style="text-align: center;">面积</th>
            <th style="text-align: center;">套数</th>
            <th style="text-align: center;">面积</th>
            <th style="text-align: center;">套数</th>
            <th style="text-align: center;">面积</th>
            <th style="text-align: center;">套数</th>
            <th style="text-align: center;">面积</th>
            <th style="text-align: center;">套数</th>
            <th style="text-align: center;">面积</th>
            <th style="text-align: center;">套数</th>
            <th style="text-align: center;">面积</th>
            <th style="text-align: center;">套数</th>
            <th style="text-align: center;">面积</th>
            <th style="text-align: center;">套数</th>
            <th style="text-align: center;">面积</th>
            <th style="text-align: center;">套数</th>
            <th style="text-align: center;">面积</th>
            <th style="text-align: center;">间数</th>
            <th style="text-align: center;">面积</th>
            <th style="text-align: center;">普通车位</th>
            <th style="text-align: center;">人防车位</th>
            <th style="text-align: center;">车位合计</th>

        </tr>
        <#assign index = 0/>
        <#assign all0100HouseCountSum = 0/>
        <#assign all0100HouseAreaSum = 0/>
        <#assign all0102HouseCountSum = 0/>
        <#assign all0102HouseAreaSum = 0/>
        <#assign all0202HouseCountSum = 0/>
        <#assign all0202HouseAreaSum = 0/>
        <#assign all0302HouseCountSum = 0/>
        <#assign all0302HouseAreaSum = 0/>
        <#assign all0402HouseCountSum = 0/>
        <#assign all0402HouseAreaSum = 0/>
        <#assign all0502HouseCountSum = 0/>
        <#assign all0502HouseAreaSum = 0/>
        <#assign allFsHouseCountSum = 0/>
        <#assign allFsHouseAreaSum = 0/>

        <#assign allHouseCountSum = 0/>
        <#assign allHouseAreaSum = 0/>
        <#assign allYlHouseCountSum = 0/>
        <#assign allYlHouseAreaSum = 0/>

        <#assign allShopHouseCountSum = 0/>
        <#assign allShopHouseAreaSum = 0/>
        <#assign allStorageRoomCountSum = 0/>
        <#assign allStorageRoomAreaSum = 0/>
        <#assign allCarLotCountSum = 0/>
        <#assign allPtCarLotCountSum = 0/>
        <#assign allRfCarLotCountSum = 0/>



        <#if azProjectList?size !=0>
            <#list azProjectList as azProject>

                <#assign houseCountMap = (houseMap[azProject.id?c])!/>
                <#assign storageRoomCountMap= (storageRoomMap[azProject.id?c])!/>
                <#assign shopHouseCountMap= (shopHouseMap[azProject.id?c])!/>
                <#assign carLotCountMap = (carLotMap[azProject.id?c])! />
                <#assign index = index+1 />


                <#assign all0100HouseCountSum = all0100HouseCountSum + (houseCountMap['0100HouseNum'])!0/>
                <#assign all0100HouseAreaSum = all0100HouseAreaSum + (houseCountMap['0100HouseArea'])!0/>
                <#assign all0102HouseCountSum = all0102HouseCountSum + (houseCountMap['0102HouseNum'])!0/>
                <#assign all0102HouseAreaSum = all0102HouseAreaSum + (houseCountMap['0102HouseArea'])!0/>
                <#assign all0202HouseCountSum = all0202HouseCountSum + (houseCountMap['0202HouseNum'])!0/>
                <#assign all0202HouseAreaSum = all0202HouseAreaSum + (houseCountMap['0202HouseArea'])!0/>
                <#assign all0302HouseCountSum = all0302HouseCountSum + (houseCountMap['0302HouseNum'])!0/>
                <#assign all0302HouseAreaSum = all0302HouseAreaSum + (houseCountMap['0302HouseArea'])!0/>
                <#assign all0402HouseCountSum = all0402HouseCountSum + (houseCountMap['0402HouseNum'])!0/>
                <#assign all0402HouseAreaSum = all0402HouseAreaSum + (houseCountMap['0402HouseArea'])!0/>
                <#assign all0502HouseCountSum = all0502HouseCountSum + (houseCountMap['0502HouseNum'])!0/>
                <#assign all0502HouseAreaSum = all0502HouseAreaSum + (houseCountMap['0502HouseArea'])!0/>
                <#assign allFsHouseCountSum = allFsHouseCountSum + (houseCountMap['fsHouseNum'])!0/>
                <#assign allFsHouseAreaSum = allFsHouseAreaSum + (houseCountMap['fsHouseArea'])!0/>

                <#assign allHouseCountSum = allHouseCountSum + (houseCountMap['houseNum'])!0/>
                <#assign allHouseAreaSum = allHouseAreaSum + (houseCountMap['houseArea'])!0/>

                <#assign allYlHouseCountSum = allYlHouseCountSum + (houseCountMap['houseYlNum'])!0/>
                <#assign allYlHouseAreaSum = allYlHouseAreaSum + (houseCountMap['houseYlArea'])!0/>

                <#assign allShopHouseCountSum = allShopHouseCountSum + (shopHouseCountMap['unChoose'])!0/>
                <#assign allShopHouseAreaSum = allShopHouseAreaSum + (shopHouseCountMap['unChooseArea'])!0/>

                <#assign allStorageRoomCountSum = allStorageRoomCountSum + (storageRoomCountMap['unChoose'])!0/>
                <#assign allStorageRoomAreaSum = allStorageRoomAreaSum + (storageRoomCountMap['unChooseArea'])!0/>

                <#assign allCarLotCountSum = allCarLotCountSum + (carLotCountMap['unChoose'])!0/>
                <#assign allPtCarLotCountSum = allPtCarLotCountSum + (carLotCountMap['normalTypeUnChoose'])!0/>
                <#assign allRfCarLotCountSum = allRfCarLotCountSum + (carLotCountMap['rfTypeUnChoose'])!0/>

                <tr <#if index%10 lte 5 && index%10 gt 0>style="background-color: #FFCC99"</#if>>
                    <td style="text-align: center">${(index)!0}</td>
                    <td style="text-align: center">${(azProject.projectName)!}</td>
                    <td style="text-align: center">&#160;${(townMap[azProject.town])!"/"}&#160;</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=0100"
                           style="font: inherit">${(houseCountMap['0100HouseNum'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=0100"
                           style="font: inherit">${(houseCountMap['0100HouseArea'])!0}</td>

                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=0102"
                           style="font: inherit">${(houseCountMap['0102HouseNum'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=0102"
                           style="font: inherit">${(houseCountMap['0102HouseArea'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=0202"
                           style="font: inherit">${(houseCountMap['0202HouseNum'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=0202"
                           style="font: inherit">${(houseCountMap['0202HouseArea'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=0302"
                           style="font: inherit">${(houseCountMap['0302HouseNum'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=0302"
                           style="font: inherit">${(houseCountMap['0302HouseArea'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=0402"
                           style="font: inherit">${(houseCountMap['0402HouseNum'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=0402"
                           style="font: inherit">${(houseCountMap['0402HouseArea'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=0502"
                           style="font: inherit">${(houseCountMap['0502HouseNum'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=0502"
                           style="font: inherit">${(houseCountMap['0502HouseArea'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=1000"
                           style="font: inherit">${(houseCountMap['fsHouseNum'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseHold=1000"
                           style="font: inherit">${(houseCountMap['fsHouseArea'])!0}</td>

                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}"
                           style="font: inherit">${(houseCountMap['houseNum'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}"
                           style="font: inherit">${(houseCountMap['houseArea'])!0}</td>

                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseStatus=3"
                           style="font: inherit">${(houseCountMap['houseYlNum'])!0}</td>
                    <td><a href="houseShow.ftl?azProjectId=${(azProject.id)!}&houseStatus=3"
                           style="font: inherit">${(houseCountMap['houseYlArea'])!0}</td>

                    <td><a href="shopHouseShow.ftl?azProjectId=${(azProject.id)!}"
                           style="font: inherit">${(shopHouseCountMap['unChoose'])!0}</td>
                    <td><a href="shopHouseShow.ftl?azProjectId=${(azProject.id)!}"
                           style="font: inherit">${(shopHouseCountMap['unChooseArea'])!0}</td>

                    <td><a href="storageRoomShow.ftl?azProjectId=${(azProject.id)!}"
                           style="font: inherit">${(storageRoomCountMap['unChoose'])!0}</td>
                    <td><a href="storageRoomShow.ftl?azProjectId=${(azProject.id)!}"
                           style="font: inherit">${(storageRoomCountMap['unChooseArea'])!0}</td>

                    <td><a href="carLotShow.ftl?azProjectId=${(azProject.id)!}&carLotType=1,2,3"
                           style="font: inherit">${(carLotCountMap['normalTypeUnChoose'])!0}</td>
                    <td><a href="carLotShow.ftl?azProjectId=${(azProject.id)!}&carLotType=4,5,6"
                           style="font: inherit">${(carLotCountMap['rfTypeUnChoose'])!0}</td>
                    <td><a href="carLotShow.ftl?azProjectId=${(azProject.id)!}"
                           style="font: inherit">${(carLotCountMap['unChoose'])!0}</td>

                </tr>
            </#list>
        </#if>
        <tr bgcolor="#b0c4de">
            <td colspan="3">合计</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=0100"
                         style="font: inherit">${all0100HouseCountSum}&#160;</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=0100"
                         style="font: inherit">${all0100HouseAreaSum}&#160;</td>

            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=0102"
                         style="font: inherit">${all0102HouseCountSum}&#160;</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=0102"
                         style="font: inherit">${all0102HouseAreaSum}&#160;</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=0202"
                         style="font: inherit">${all0202HouseCountSum}&#160;</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=0202"
                         style="font: inherit">${all0202HouseAreaSum}&#160;</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=0302"
                         style="font: inherit">${all0302HouseCountSum}&#160;</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=0302"
                         style="font: inherit">${all0302HouseAreaSum}&#160;</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=0402"
                         style="font: inherit">${all0402HouseCountSum}&#160;</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=0402"
                         style="font: inherit">${all0402HouseAreaSum}&#160;</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=0502"
                         style="font: inherit">${all0502HouseCountSum}&#160;</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=0502"
                         style="font: inherit">${all0502HouseAreaSum}&#160;</td>

            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=1000"
                         style="font: inherit">${allFsHouseCountSum}&#160;</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseHold=1000"
                         style="font: inherit">${allFsHouseAreaSum}&#160;</td>

            <td>&#160;<a href="houseShow.ftl?town=${town!}"
                         style="font: inherit">${allHouseCountSum}&#160;</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}"
                         style="font: inherit">${allHouseAreaSum}&#160;</td>

            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseStatus=3"
                         style="font: inherit">${allYlHouseCountSum}&#160;</td>
            <td>&#160;<a href="houseShow.ftl?town=${town!}&houseStatus=3"
                         style="font: inherit">${allYlHouseAreaSum}&#160;</td>

            <td>&#160;<a href="shopHouseShow.ftl?town=${town!}"
                         style="font: inherit">${allShopHouseCountSum}&#160;</td>
            <td>&#160;<a href="shopHouseShow.ftl?town=${town!}"
                         style="font: inherit">${allShopHouseAreaSum}&#160;</td>

            <td>&#160;<a href="storageRoomShow.ftl?town=${town!}"
                         style="font: inherit">${allStorageRoomCountSum}&#160;</td>
            <td>&#160;<a href="storageRoomShow.ftl?town=${town!}"
                         style="font: inherit">${allStorageRoomAreaSum}&#160;</td>

            <td>&#160;<a href="carLotShow.ftl?town=${town!}&carLotType=1,2,3" style="font: inherit">
                    ${allPtCarLotCountSum}&#160;</td>
            <td>&#160;<a href="carLotShow.ftl?town=${town!}&carLotType=4,5,6" style="font: inherit">
                    ${allRfCarLotCountSum}&#160;</td>
            <td>&#160;<a href="carLotShow.ftl?town=${town!}"
                         style="font: inherit">${allCarLotCountSum}&#160;</td>

        </tr>
    </table>
</div>

